<?php
$habervideo = $row['habervideo'];
$habervideo = stristr($habervideo, 'watch?v=');
$habervideo = explode('=', $habervideo);
$habervideo = explode('&', $habervideo[1]);
$habervideo = $habervideo[0];
// YouTube Plugin
echo "<object width=\"425px\" height=\"344px\">";
echo "<param name=\"movie\" value=\"http://www.youtube.com/v/".$habervideo."&autoplay=1\"></param>";
echo "<param name=\"wmode\" value=\"transparent\"></param>";
echo "<embed src=\"http://www.youtube.com/v/".$habervideo."&autoplay=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425px\" height=\"344px\"></embed>";
echo "</object>\n";
$habervideo = "http://www.youtube.com/v/".$habervideo."&autoplay=1";
?>